package com.ex.question.base; 

public abstract class ShapeJudgeQuestion extends BaseQuestion   {

	protected boolean mRightAnswer;
	protected boolean mAnswer;
	boolean mIsAnswer;
	boolean mIsRightAnswer;
	 
	
	public ShapeJudgeQuestion(){
		mIsAnswer = false;
		mRightAnswer = true;
		mAnswer = false;
		mQuestionTypeName = "未知图形判断题";
	}
	
	/**
	 * 设置判断答辩.
	 * @param answer 答案.
	 * @return 答案是否正确  正确 true 错误 false. 
	 */ 
	public boolean setJudge(boolean answer) {
		mIsAnswer = true;
		mAnswer = answer;
		if (this.mAnswer == this.mRightAnswer)
			mIsRightAnswer = true;
		else
			mIsRightAnswer = false;
		
		return mIsRightAnswer;
			 
	}

	/** 
	* 获取图形判定答案.
	* @return 返回答案 true 图像正确, false 图形错误.
	*/  
	public boolean getJudgeAnswer() {
		return mAnswer;
	}
	/** 
	* 是否回答题目.
	* @return 是否回答， 回答 true， 未答  false.
	*/  
	public boolean Answered() {
		return mIsAnswer;
	}
	/** 
	* 获取图形判定正确答案.
	* @return 返回答案 true 图像正确, false 图形错误.
	*/  
	public boolean getRightAnswer() {
		return mRightAnswer;
	}  
}
